
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import '@/assets/css/global.css';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import VueLazyload from 'vue-lazyload';

const app = createApp(App);

// 注册 ElementPlus
app.use(ElementPlus);

// 注册 VueLazyload
app.use(VueLazyload, {
    loading: '/path/to/loading.gif', // 加载中的图片
});

// 注册 Vuex Store 和 Vue Router
app.use(store).use(router);

// 挂载应用
app.mount('#app');